{% extends 'base.html' %}

{% block content %}
    <div class="row">
        <div class="col-md-10 offset-md-1">
            <h1 class="text-center mt-4">{{ title }}</h1>
            <form method="POST" novalidate> {#{{ form.hidden_tag() }}#}
                {{ form.csrf_token }}
                <div class="form-group">
                    {{ form.email.label(class="form-control-label") }}
                    {% if form.email.errors %}
                        {{ form.email(class="is-invalid form-control form-control-lg") }}
                        <div class="invalid-feedback">
                            {% for error in form.email.errors %}
                                <span>{{ error }}</span>
                            {% endfor %}
                        </div>
                    {% else %}
                        {{ form.email(class="form-control form-control-lg") }}
                    {% endif %}
                </div>
                <div class="form-group">
                    {{ form.submit(class="btn btn-outline-primary") }}
                </div>
            </form>
        </div>
    </div>
{% endblock %}
